package com.tarena.rocket.study;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@RocketMQMessageListener(
    topic="test-delay-topic01",
    consumerGroup="practice-test01-consumer01")
@Component
public class ConsumerDelay implements RocketMQListener<String>{
    @Override public void onMessage(String message) {
        System.out.println("消费者接收到的消息:"+message);
        int a=1/0;
    }
}
